package com.ocom.payhandle.service;

import com.alibaba.fastjson.JSONObject;
import com.baomidou.mybatisplus.extension.service.IService;
import com.ocom.common.dto.SubsidyDto;
import com.ocom.common.entity.payconfig.EntitySubsidyData;
import com.ocom.common.request.payconfig.AddSubsidyDataResquest;

import java.util.Date;
import java.util.List;

public interface SubsidyDataService extends IService<EntitySubsidyData> {
    List<EntitySubsidyData> subsidyList(Long comId, String strPlanID);

    List<EntitySubsidyData> cloneSubsidyData(Long comId, JSONObject jsonObject);

    Boolean subsidyDataSaves(Long comId, List<EntitySubsidyData> saveEntitySubsidyData);

    List<EntitySubsidyData> StaySubsidyData(Long comId, Integer planId);

    Boolean updateSubsidy(Long comId, Integer planId, Integer completeMoney, Long clearMoney, Date date);

    Boolean updateSid(Long comId, Integer id, Integer dataStatus, Date date);

    Boolean removeSubsidyData(Long comId, AddSubsidyDataResquest addSubsidyDataResquest, Integer planId);

    Boolean updateSubsidyMoney(Long comId, AddSubsidyDataResquest addSubsidyDataResquest, Integer planId);

    EntitySubsidyData selectOrderNo(Long comId, String orderNo);

    boolean insetSubsidyData(Long comId, EntitySubsidyData entitySubsidyData);

    boolean updatePlanMoney(Long comId, Integer planMoney, String orderNo);

    boolean updateSubsidyData(Long comId,SubsidyDto subsidyDto,String companyId,String money);
}
